<?php

class about_ctrl extends Controller
{


    //////每一个都进行单个提交

    public function __construct()
    {
        parent::__construct();

    }

    //修改about
    public function save_about()
    {
        if (!$this->ajax_err && $this->uid) {
            $src = $_REQUEST["src"];

            $_mdl = Loader::mdl("about_mdl");
            $data = $_mdl->add_about(1,$src);
            $this->ajax($data);
        } else {
            return $this->ajax('', array(1, '未登录', 1, '请登录'));
        }
    }


    //获取about
    public function get_about()
    {
        if (!$this->ajax_err) {
            $_mdl = Loader::mdl("about_mdl");
            $data = $_mdl->get_about();
            $this->ajax($data['src']);
        } else {
            return $this->ajax('', array(1, '未登录', 1, '请登录'));
        }
    }


}